home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0257.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  1.3 KB  |  38 lines

  1. I'm gonna try to reproduce the problem, so I'll get back to you.
  2.  
  3. "CAH-TRIDGES!!!" -Tucco,   The Good, The Bad, and The Ugly 
  4. -----Original Message-----
  5. From:    Robert W. Benjamin [SMTP:sosbbs.com@mail1.access.digex.net]
  6. Sent:    Friday, June 27, 1997 1:45 AM
  7. To:    Amos List
  8. Subject:    The Unseen Bob
  9.  
  10. I am working on an AMOS project, a simple shooter for the AMIGA Public
  11. Domain.
  12. While coding the game, I have run into a problem:
  13.      I have a scene where an enemy slides up and comes into view in a window
  14.      of a building. The enemy is on the screen all the time, but I have set
  15. it's
  16.       'BOB LIMIT' to the size of the window, so the only time you see the
  17. enemy
  18.       is when it slides up into the 'BOB LIMIT' view area.
  19.       
  20.       The problem is, if i want another 'BOB' to detect a collision with
  21. the 'BOB'
  22.        in the window, it detects a collision with the 'BOB' even if it's
  23. under the
  24.        window (NOT IN THE 'BOB LIMIT' AREA). The 'BOB' does'nt even have
  25.        to be visible on the screen (IN THE 'BOB LIMIT' AREA), to detect a 
  26.        collision.
  27.  
  28. Why does it detect a collision, with a part that's not being drawed on the
  29. screen?
  30. is it because collisions are based on the X and Y positions? Or because AMOS
  31. looks at the size of the 'BOB' images in the .abk 'BOB' bank to check for
  32. collisions?
  33.  
  34. Robert W. Benjamin
  35. rwbenjamin@sosbbs.com
  36.  
  37.  
  38.